package com.ddtech.business.check.controller;


import com.ddtech.business.check.query.CheckUserAnswerQuery;
import com.ddtech.business.check.service.CheckUserAnswerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 考核用户答案 前端控制器
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Api(tags = "业务-考试用户答案")
@RestController
@RequestMapping("/check/user-answer")
public class CheckUserAnswerController {
    @Autowired
    private CheckUserAnswerService checkUserAnswerService;
    @ApiOperation(value = "查询错题数据")
    @GetMapping(value = "/err-page-list")
    public ResponseEntity getErrorPageList(CheckUserAnswerQuery checkUserAnswerQuery) {
        return new ResponseEntity(checkUserAnswerService.getErrorPageList(checkUserAnswerQuery), HttpStatus.OK);
    }
}
